IPGetNetmask


C Specification

#include <dolphin/ip.h>

#define IP_ALEN             4       // IP address length
 
void IPGetNetmask ( IPInterface* interface, u8* netmask );

Description

IPGetAddr() gets the netmask of the specified interface.

Arguments

interface Pointer to IPInterface to get the netmask. Use NULL to specify the default network interface.
netmask Pointer to array[IP_ALEN] of u8 that receives the netmask.

Return Values

None.

See Also